package com.zhangfei.plus.exception;

public enum ResultCodeEnum {


    /**
     * 成功
     */
    SUCCESS(0, "成功"),
    FAIL(400, "操作失败");

    /**
     * 编码
     */
    private final Integer code;

    /**
     * 信息
     */
    private final String msg;

    /**
     * 构造函数
     *
     * @param code 编码
     * @param msg  描述信息
     */
    ResultCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
